Segger ATSAME54N20 SWD error
An MCU GND pin wasn't making contact with its pad, soldered it correctly and was able to communicate with the chip without problems!

EDIT: After erasing the MCU using J-Link commander I lost connection and noticed the MCU was overheating. I haven't managed to program any board yet. This is the thread with the follow up.