I got some similar problem in Horizon Zero Dawn. Sometimes when I press [space] several times my character is jumping and jumping for next 3-4 secs.
This might sounds weird but changing the Borderless to Fullscreen or vice versa is resolving this issue for me.