Maybe you should start with writing a new MBR, then create a partition, both can be done with
https://wiki.archlinux.org/title/Fdisk
and then finally use mkfs.ext4 to format it.
First unmount the partition or fdisk can’t work.
Edit: In case there is an I/O error fdisk will show