My session automatically closes when starting a certain type of app

New to Ubuntu here XD Ok so I just did an install of ubuntu alongside windows. Everything works perfectly except one thing: Ubuntu crashes. It’s not constant tho, and it happens when I open settings, or when i wanna change the back ground via the right click on the desktop, or when i want to play a song. I tried the alt+Sys Req + REISUB thing but it logged me off again on the next session while clicking on a song to make it play. These are the type of action I did when it logged me off, I haven’t tried othe ways to make me log off.