Improved error handling of invalid graphics resolutions