This same issue was happening with bandicam too, so I decided to search for a new recording tool. Many people recommended Action! so I decided to give it a go with the trial.
Unfortunately, the same issue is happening than with Bandicam: When I start the recording, the game crashes almost immediatly. I'm using the default recording options and I put "game mode" on.
Not sure if this error is common with certain kind of games.