I'm not sure how to test things in any significant detail, but I have discovered that there are three things that seem to affect how much swap gets used in my situation (which is different to yours but maybe there is a link)
1) I/O wait
2) Network traffic
3) Amount of free RAM on the Node.
Regarding item 3, I have two Nodes that have identical hardware and configuration. One has 50% free RAM with RAM icon green, one has 40% free ram with the RAM usage icon in the GUI is orange/amber.
When performing an rsync between the nodes that causes up to 10% I/O Wait and up to 100% Ethernet bandwidth usage on the node with 40% free RAM, swap increases significantly, and would continue to increase to 100% if the task I'm running ran long enough.
On the node with 50% free RAM, no additional swap is used.
And this is why I think items 1,2 and 3 are linked to how much swap is being used.
If the tasks in your Containers are causing high disk I/O wait, or high network traffic, or maybe if you have a complex firewall set up in the Node, it is possible one of these things may be triggering the swap usage.
What I suggest you try is to reduce swappiness on the Node, maybe to 10. If you do a search of these forums, you'll find several threads discussing this issue.
The basic setting can be found here:
https://pve.proxmox.com/wiki/ZFS_on_Linux (scroll down to swappiness. It doesn't matter that this page is talking about ZFS - ignore that).
But it seems that there is swappiness and there is cgroups swappiness. Take a look at
https://forum.proxmox.com/threads/swappiness-question.42295/
The importance of the cgroups swappiness is that it may be that something is causing the proxmox firewall or some other proxmox element that uses cgroups swapiness settings to use swap, rather than the swap being caused directly by whatever is running in the Container itself.
** Please be aware that I only have the most basic understanding of what is happening here. All I can do is try to provide more information that may help you. I am still seeking answers myself, mainly by experimentation **