text: Title: Engine crashes
  Body: ### Search before asking
  
  - [X] I have searched the YOLOv5 [issues](https://github.com/ultralytics/yolov5/issues) and found no similar bug report.
  
  
  ### YOLOv5 Component
  
  Training
  
  ### Bug
  
  ![image](https://github.com/ultralytics/yolov5/assets/67851721/143797e6-7927-4fb4-9739-d92322a0f32d)
  
  
  ### Environment
  
  I have tried the old version and the new version of yolov5 6.2 and 7.0, and the situation is the same. I also found a lot of information and changed the parameters in export.py, but it still doesn't work.
  
  ### Minimal Reproducible Example
  
  _No response_
  
  ### Additional
  
  _No response_
  
  ### Are you willing to submit a PR?
  
  - [X] Yes I'd like to help by submitting a PR!