Edited: It seems that this only happens to Celeste. Hollow Knight works just fine (haven't tested other games yet).
Edited 2: Thanks everyone! I've made it to work. See the comment.
I have no idea if it would help, but if you're on windows you could also try to switch to the openGL version of Celeste. I don't know exactly what's different, but it changes some libraries or something, so there's a chance it'll work. (Don't quote me on that)
You can change it on steam from Library -> Right-click on game -> Properties -> Betas