I usually buy games with heavy discounts or in bundles. For example, the last bundle I bought was Skyrim Special Edition + Prey for under €20. I was OK if one (or both) were unplayable or I if simply didn’t like them.
I don’t get upset if once in a while a game does not work, because I’ve seen the evolution of gaming on Linux since the 90’s, and have seen many unplayable games become playable. Yes, it sometimes takes a decade or so. :-)
I don’t spend too much on games because I have too many already that I most certainly will not be able to play before I die.