You don't have enough memory for your workload. You have over 6GB of Swap used, who knows how much Compressed Memory.
You may want to run Disk Utility First Aid on the hidden Container. Within Disk Utility you may need to click "View" and select "Show All Devices" before the hidden Container appears on the left pane of DisK Utility. Even if the First Aid summary says everything is "Ok", click "Show Details" and scroll back through the report to see if any unfixed errors are listed. If there are errors, then run First Again until they are gone. If after several scans the errors remain, then you will need to run First Aid while booted to Recovery Mode. If the errors remain, then you will need to erase the whole physical SSD (Intel Macs only) followed by reinstalling macOS & restoring from a backup.
You may want to run the Apple Diagnostics to see if any hardware issues are detected. Unfortunately the diagnostics rarely detect problems even when hardware issues are confirmed through other methods. You can also run DriveDx (free trial period) to check the health of the SSD. Post the complete DriveDx text report here using the "Additional Text" icon which looks like a piece of paper on the forum editing toolbar. Unfortunately the Apple SSDs have very little health information available, but it never hurts to check just to be safe.
I sincerely hope you have a good backup. People should always have frequent and regular backups of their computer and all external medial (including the cloud) which contains important & unique data. There are a lot more new ways to permanently lose access to the data on the internal SSD due to all the recent hardware, software, and security changes.