Check decoded dimensions for validity