Hi, and welcome to this forum.
Regarding levels. It might be due to difference in plugin chains in PT and SONAR.
Your M-Audio AI can, and should be recording at 24 bit, so recording levels are not that important.
Try shooting for approx - 12 dB when recording
You can always increase the level after recording.
But like
Cactus Music, I also had a M-Audio AI, and had some issues with the drivers most of the time.
Might have been down to user error, though..
But I have also seen
good reviews on your AI.
Try to do a recording with your AI, and shoot for approx -12 dB. If you get too much noise, try a DI (if available)
Come back, if it doesn't help.
All the best.