OK I managed to solve the problem by reviving the device following this guide: https://support.apple.com/en-gb/guide/apple-configurator-2/apdebea5be51/mac
Topic:
App & System Services
SubTopic:
Core OS
Tags: