Default Bad Internal Storage?

A week ago I was getting ready to do a nandroid backup before flashing a new ROM. When I tried backing up, it said that I didn't have enough storage. When I went to look at what was being backed up, I saw that the /data partition was 40 terabytes in size. I reformatted everything and flashed a new ROM and started having problems trying to enter a new APN (I'm on AT&T with Verizon Note 2). Eventually I ODIN'd back to stock 4.1.2 and then re-unlocked the bootloader. I reflashed TWRP and saw that /data was back to normal. Then I flashed a new ROM and encountered this.

http://imgur.com/Pqpnr7k,tXyMW7e#0 (two images)

I tried a few different ROMs and the problem persists, and I can't enter new APNs which is rather inconvenient for the times when I need use the phone part of the device. Anyone have any ideas what is going on with the internal storage? Perhaps the NAND has gone bad? Any information or insight into this would be greatly appreciated.