If the problem amounts to something that “materially affects the drivability or safety” of the vehicle, there is Lemon Law relief available. And, in my experience, it’s not that difficult to obtain that relief.
I crafted a Lemon Law demand letter regarding the problems with my friend’s 2005 Rav-4, and Toyota promised that they would buy the vehicle back from him if their regional service manager and an engineer were unable to remedy the situation. (The dealer had failed, on 3 occasions)
We gave them that one last try, and it worked. But, we had it in writing that Toyota would come to his assistance with a check if it didn’t work, and that was my proof that my Lemon Law demand letter worked.
Every car dealer I worked for always had a dozen or more vehicles on the lot that are 1 year old. One out of a hundred might have some type of “glitch”, but no reason to fear buying a used vehicle.