Gmod crashes on changing resolution

When I changed the resolution once into 800x600 with the display mode “Run in a window” and then back into 1024x768 (no matter what a resolution it is over 1000, I think) with “Full screen” it crashes every time.

Try putting it in 800x600 fullscreen first, then 1024x768