Before fixing, please back up your partition data in advance in case of data loss with iBoysoft Data Recovery for Mac. Follow the instructions provided by the software, you can successfully save your data.
Best Mac Deleted File Recovery Software - iBoysoft Data Recovery for Mac
After backup, here are troubleshooting steps: Though reboot didn't work, you are advised to boot into Recovery mode by restarting your Mac and holding down Command + R until you see the Apple logo, then try running the resize command again from Terminal in Recovery mode. You can refer to Run Data Recovery Software in macOS Recovery Mode.
If your Mac boots normally now, use Disk Utility on your Mac to check and verify whether the identifier in your disk including the broken APFS partition is correct or not. And launch First Aid in Disk Utility to check for errors and repair them. You also can resize your APFS container to a specific size like 300 GB (adjust the size as needed).
After trying these steps, you should be able to successfully resize your macOS container to reclaim the free space from your Boot Camp partition. If not, then the only thing to do is to format it and contact technical support.