Steam crashes randomly when playing Garry's Mod

Sometimes when i’m doing things on my Garry’s Mod, i like to listen to some vidya game OST and things like that on the Steam Music Player, but sometimes when i do this, music stops and Steam just crashes, and then Garry’s Mod, no crash message, just closes up, i would like to know how to fix this, because it’s pretty annoying.