I had a different symptom, but this post helped me resolve the issue. I figured I'd reply in case it helps someone else.
When attempting to do an apt update, I ran into a string of "Error writing to file..." responses:
root@pve2:/# apt update
Get:1 http://ftp.debian.org/debian bullseye...