First stop the container, and then, for example, run:
vzctl set 200 --quotaugidlimit 3000 --save
200 being the VMID. Replace with the correct VMID.
Or you can edit
/etc/vz/conf/CTID.conf and then restart the VM.
Finally, you may also need to run the following on the actual VPS itself: