That is the risk of living in an apartment complex, except you own it in a condo.
Noise, obnoxious neighbors, parking issues, the whole ball of wax.
These are not the same as single family homes, and people are much less considerate of others these days.
Having lived in a condo for several years, and also having lived in an apartment, I could not see much of a difference in the quality of life except the condos didn’t attract drug dealers. But every problem I ever had in an apartment, was harder to deal with in a condo. An apartment I could break the lease and move, a condo you were stuck with it until you sold it, which is not always as easy as it sounds.
Plus (in most states) you have to disclose the problem to anybody who wants to buy it.