Unable to enable cheat codes, and the game keeps crashing

Hello, here’s the situation: I’m trying to stream a game for my friends during a Discord voice chat, but I can’t get it to work. Also, the game suddenly crashes.