Error partitioning disk

Every time a try partitioning my hard drive I receive the following error message:

"APFS Container Resize error code is 49212 A problem occurred while resizing APFS Container structures. : (-69606)"

What am I doing wrong? I have about 500 GB free on my hard drive so I know that isn't the problem. I have also disabled Time Machine snapshots.

Machine specs:

iMac (27-inch, Late 2013) running macOS Catalina Version 10.15.7

3.2 GHz Quad-Core Intel Core i5 24 GB 1600 MHz DDR3 Macintosh HD NVIDIA GeForce GT 755M 1 GB