I feel you, but on the other hand if every single community member tries to help, even if they have no idea or don't understand the question, this is not great.
Anybody can ask Google or an LLM, I am spending more time reading and acknowledging this bot answer than it took you to copy/paste. This is the inverse of helping.
The problem is not "the loop"(?), your (LLM's) approach is not relevant, and I've explained why.
Keep in mind that a part of the filesystem will be reserved on creation. Here if I create a completely empty ext4 filesystem with:
Dolphin reports "213.8 GiB free of 225.3 GiB (5% used)"