The reason that the P4Pro rotates on it's own is that it's trying to eliminate a Yaw/magYaw separation. Seems to be a problem with compass #0 which is the one that it's using. I don't think it's associated with pointing west. At time 170 there was a Yaw/magYaw separation that caused the
P4P to fix by rotating while holding Yaw fixed. At about 220 the separation was eliminated and the
P4P stopped rotating at the heading -27 degrees.
View attachment 90557
The same thing happens at 223 secs but stopping at -150 degrees.
View attachment 90558
There is an indication that the compass isn't calibrated as can be seen while the AC is rotating from 28 secs to 78 secs
View attachment 90559
There are several points in the flight where this doesn't happen, it's only after 45 degrees or more that the Yaw/magYaw separation happens followed by the uncommanded rotating to fix the separation.
Got all that ?

Can you please do two tests.
1) At altitude turn it pointing North and then wait a couple of minutes to see if it really does stop at west.
2) Cause the
P4P to switch to compass #1 (it's normally on #0). Then do your test. Compass #1 seems to be better behaved. The numbering scheme that you see in the App is probably 1 and 2 whereas in the .DAT it's 0 and 1. So just get it to switch to the higher numbered compass. I don't know where the compasses are but moving a screwdriver close to a compass will cause it to switch.
Don't know why it seems to have this problem. I always ask is there some external equipment attached?