See it from your test data, euler angle showed different values when you place sensor at the same initial position.
As you used NDOF mode, what was the test environment of your product? Such as magnetic field environment. What are the components on your PCB that will cause changes in the magnetic field?
By the way, have you compared the test data of NODF mode and IMU mode?
... View more