The error message says it all. You cannot switch the status from triclinic to orthogonal unless the box actually is orthogonal, i.e. all tilt factors are 0.0.
You can achieve the necessary deformation with either change_box (instantaneously) or fix deform (gradually).