Testing resonances shuts down printer

Basic Information:

Printer Model: Ender 3 Pro
MCU / Printerboard: Creality 4.2.7
RPi 3B+ running octopi
klippy.log
klippy.log (148.4 KB)

Describe your issue:

I connected a mpu9250 accelerometer to use input shaping. I think i installed the software correctly, but when using the TEST_RESONANCES AXIS=X command
I get this at the end of testing:

Recv: // Testing frequency 131 Hz
Recv: // Testing frequency 132 Hz
Recv: // Testing frequency 133 Hz
Recv: // Lost communication with MCU ‘rpi’
Recv: // Once the underlying issue is corrected, use the
Recv: // “FIRMWARE_RESTART” command to reset the firmware, reload the
Recv: // config, and restart the host software.
Recv: // Printer is shutdown
Recv: !! Lost communication with MCU ‘rpi’
Recv: // Lost communication with MCU ‘rpi’
Recv: // Once the underlying issue is corrected, use the
Recv: // “FIRMWARE_RESTART” command to reset the firmware, reload the
Recv: // config, and restart the host software.
Recv: // Printer is shutdown
Recv: !! Lost communication with MCU ‘rpi’

Also after 21 hertz the printer shuts down:
Recv: // Testing frequency 20 Hz
Recv: // Testing frequency 21 Hz
Recv: // Klipper state: Shutdown
Recv: // Testing frequency 22 Hz
Recv: // Testing frequency 23 Hz

ACCELEROMETER_QUERY works correctly

I’m not sure what to do now since i didn’t find any issue with mcu “rpi” shutting down (only mcu “mcu”)

Please help!
Thanks in advance