If your Mac's OSX is severely corrupted, you may need to create a bootable USB to access Disk Utility. Follow these steps to recover your Mac:
Step 1: Create a Bootable USB
Get a USB drive: Ensure you have a USB drive with at least 8GB of free space.
Follow Apple's guide: Visit https://support.apple.com/en-us/101578 for instructions on creating a bootable USB.
Step 2: Boot from the USB
Insert the USB: Plug the bootable USB into your Mac.
Restart your Mac: Hold the Option (⌥) key while booting up your Mac.
Select the USB: Choose the USB drive as the startup disk.
Step 3: Use Disk Utility
Open Disk Utility: Launch Disk Utility from the Utilities window.
Select your main drive: Choose your MAIN DRIVE (not the Bootcamp one) from the list.
Partition: Click Partition, then click Partition again. You'll see a pie chart.
Remove Bootcamp: Click the blue space used by Bootcamp and click the minus (-) icon. Repeat this step for any other non-macOS partitions until your pie chart is completely gray, then click Apply.
Delete unnecessary partitions: Right-click and delete any APFS partitions other than your Main Disk, macOS Base System, or the USB drive.
Step 4: Erase and Reinstall
Erase the main drive: Select your main drive and click Erase. This will delete all data, so be sure to back up any important files.
Format as APFS: Ensure the format is set to APFS.
Name the drive: Give your drive a name.
Click Erase: Confirm the erase process.
Install macOS: Exit Disk Utility and install macOS on your main drive.
By following these steps, you should be able to recover your Mac from a corrupted state. Remember to back up your important files before erasing your main drive.
diskutil list. Then we can see what the layout is like after your deletions in Disk Utility, and someone may be able to suggest a solution.