Prevent MapSize from overflowing.