ALT + TAB Crashes my csgo

when i alt tab my csgo crashes i had the game before and i deleted it by for some stupid reason so i reinstalled once on my hard drive then it crashed when alt tabed then i installed it on my ssd and its doing the same thing it was orginally on my ssd and never did this i dont know what happened but can someone plz help me!