Erase the whole HDD or SSD, repartition, and reload.
Partition corruptions arise far too often, and are far too easy to trigger.
This Mac is probably old enough that Internet Recovery isn’t always a good option, which can mean building a bootable installer on another Mac, and using that to wipe the storage on the problem Mac. This if Internet Recovery was corrupted by the repartitioning.
Use macOS Recovery on an Intel-based Mac - Apple Support (Option-Command-R for Internet Recovery)
If Internet Recovery does not launch, you will need to use a second Mac:
How to create a bootable installer for macOS - Apple Support
Or work with somebody else or with Apple Support; with somebody that can help re-load this for you.
When working with partitioning: have backups of all partitions. Those with data you care about. Have a bootable installer, have a second Mac bootable HDD or SSD, or a Mac with Internet Recovery in firmware, or the backups and preferably a combination of these recovery paths.