HOW DO I CHECK THE LAST DIAGNOSTICS RESULT CODE?
Use the About This Mac command in the Apple menu, click on System Report… and select the Diagnostics item at the left, in the Hardware section. That should tell you the last time Diagnostics was run, and the result. M1 Macs running 11.3 may not update this correctly though, as it’s stored in NVRAM.