[Editor] Check for valid map size

fixes: #7207
fixes: #7208

This Pr is a try to prevent crashes when Map creators, using invalid Map Sizes (Size & Bounds) ...
it will be good to know which map sizes are allowed and which is the smallest allowed Map!
 
These comments don't explain anything that the code doesn't tell.