hey i had this exact problem but with project cars 3, been a couple of others but that the only one i remember. Ok so for me this was because i had turned on Hardware accelerated gpu scheduling in windows. so if you have that enabled go ahead and disable it and see if that fixes it, if you dont have it enabled then i have no idea sorry