From Valve Developer Community

If the game crashes when you try to run buildcubemaps , this probably means your game resolution is set too low. Before you try to build cubemaps you must ensure your game width and height are over 512 pixels. This means that the minimal standard resolution to build cubemaps is 800x600.