Model is 90 degrees off sideway
Different 3D applications have a different axis system. If your model is 90 degree rotated after optimization, it's because the original file was saved with a different Up axis. There is no risk in fixing the rotation issue in the target platform instead of changing the source file.