How to convert UV to square shape?
Method from here: How to Straighten Curved UVs into Straight Belt is working just fine, but you have some errors in your model (Interior Faces).

In Edit Mode:


Select > All by Trait > Interior Faces.
X > Only Faces.




This is how to repair your mesh. Now you can use linked method to UV Unwrap it without problem.