Facing The Invalid B-Tree Node Size Problem?

I have an iMac with 1TB fusion drive. Once, while browsing in Safari, my computer froze. Then, I booted into recovery mode and erased the Mac OS partition. Then I tried to verify the partition but was unable to do it as an error message popped up saying “invalid b-tree node size”. When I tried repairing the disk, it displayed the same message. I don’t know what happened.
