iMac stuck in boot loop after using it to create BigSur USB
I am looking for some help after I seem to have caused my iMac to get stuck in a boot loop. To explain how I got here:
I recently erased my MacBook Air 2020 but after having trouble reinstalling the osx by recovery mode I decided to use my iMac to create a bootable BigSur USB drive that I could then use to reinstall the OSX onto my MacBook Air. So after creating the USB using terminal, for some reason the USB drive wouldn't dismount without force ejecting it. So I simply shut down the iMac in order to remove the USB drive safely. However, after booting up my iMac again it is now stuck in a boot loop and keeps displaying the 'your computer restarted because or a problem...' message.
I have since tried the following things to solve the issue:
removed all USB connections
Reset NVPRAM
Tried to boot up into recovery mode to use disk utility to check the drive but recovery mode doesn't give me the option to open disk utility
I really hope I haven't lost everything on my iMac as it's my main work computer.
Any help will be greatly appreciated thanks!
Simon
iMac 27″