This is indeed an issue that needs to be solved. It's part of the ALSA configurations, so that's why custom ROM developers usually patch this. The best workaround I found, simply because it's what I use, is to use external DACs. I personally love this one [iFi's GoBar Kensei]
[]: https://ifi-audio.com/products/go-bar-kensei/ This doesn't give neither the cutoffs, neither the clipping I usually get with usual headphones. Am using an S10+ and an S20Ultra, both running OneUI6.0 and March security patch, for refference.