The solution would then be to reduce car traffic, honestly, not tell people to be ok with this. I remember my roommate trying to be quiet in the other room while talking to someone and it was keeping me up(several perfectly acceptable reasons I let it happen, one of them being I knew it would end, but still).
I have a friend on a groundfloor who has trains go by their place somewhat regularly, but that’s also not frequent and they got to choose to be there, where these people where there first.
I’ve experienced situations like this, it’s not fun. The unceasing nature is probably the worst part, where you can put up with a lot specifically because you know that it will end at some point but if it’s just going on forever that’ll drive ya nuts.