This will sound difficult but it's not once you do it a few times. Max should have a better and automatic tool to do this but I've never found one. When nothing else works to get the pivot aligned try this: (I posted a video too)
1. Go to the 'Geometry' panel and then to 'Helpers'
2. Click 'Grid' and make sure 'AutoGrid' is on
3. Click the side of your object with the bad axis and drag to create a grid on that surface.
4. 'Right Click' on the new grid and choose 'Activate Grid'
5. Go back to 'Geometry' and pick a 'Box' and activate 'AutoGrid'
6. Create a 'box' on the new Grid Object. Add an 'Edit Poly' modifier to the new box.
7. Click 'Attach' and then click the original object.
8. Select 'Element' subobject mode and select the new box you drew on the grid in #6 and delete it.
9. Delete the Grid.
10. Click the original object. The Axis should be aligned. Now move or snap it to where you want it.
Rob Holmes
------------------------------------------------------------------------------------------------------------------------------------------
3ds Max (2023-2025), V-Ray 6.2, Ryzen 9 3950-X Processor, DDR 4 128MB, Gigabyte Aorus X570 Master motherboard, Sabrent Rocket NVMe 4.0 M.2 drives, NVidia RTX 4090, Space Pilot Pro, Windows 11 Pro x64, Tri-Monitor, Cintiq 13HD, Windows 11 x64
------------------------------------------------------------------------------------------------------------------------------------------