Your firmware is 3.1 but there has been a bug fix release 3.1.1. I also suspect that your DWC might be out of date.
Upload this zip file as is to the /sys folder
https://github.com/Duet3D/RepRapFirmware/releases/download/3.1.1/Duet2and3Firmware-3.1.1.zip