Hello,
about geometric distortion calibration, why not using tools like example codes from OpenCV lib and checkerboard pattern?
From my point of view it seems easier than using Hugin.
links:
https://docs.opencv.org/4.6.0/d9/d0c/group__calib3d.html
https://docs.opencv.org/4.6.0/d4/d94/tutorial_camera_calibration.html
I can explore more on this if your are not opposed tu such procedure.
Best