Internal partitions messed up
You can try to format your data and system partitions using twrp.First boot to twrp and enter wipe menu.

-Then go to Advanced Wipe.

-Select the partitions you want to repair say data.

-Select the Repair or change file system tab.

-Select change file system.

Note your file system.Mine is ext4

-Select F2FS and swipe to change.

-Again select ext4 (original) and swipe to change.

Repeat this process for other partitions.