Looking at these two links, there is a bit of contradiction.
you might want to combine PCA with OHE
PCA does not make sense after one hot encoding
And I thought that the second link makes sense, but that's mostly because the data is synthetically random with an unreal distribution.
What are some methods for reducing dimensions for categorical covariates?