I had previously increased the dbcache value to 160000 MB (with 16 GB of ram).
That's 10 times more than your total RAM, that's not good. I don't expect it to use that much though, but just in case: have you checked how much memory Bitcoin Core is using? If it's filling up your swap that's not good.
I usually set dbcache to 4096 MB if I'm downloading the full blockchain, and reduce it to 1024 for normal continuous usage (when I have a complete blockchain already, and only need to download a few new blocks per hour).