I think if you were keeping track of what classes were deprecated over the last couple of years then your extensions should be fine.
With the exception of BS 2.3 incompatibly in the back-end of J4. I got around that with a CSS Shiv.
Basically I check which version of Joomla I'm on and then include the shiv if the major version is greater than 3 and we're in the back-end.
There is probably a better way to do it, but it works and doesn't require a bunch of additional technical debt, so I'm good with it.
Roger does the extension you're having trouble with use an installer script? When I first tested installing my component in J4 it failed without any real info. The culprit ended up being a deprecated JInstaller::get method reference in the installer script.
Not sure if that is what's causing your headache, but it might be worth investigating.