Zend certified PHP/Magento developer

Mac disk randomly filling up

so a few days ago I deleted some files I didn’t need on my MacBook Pro(macOS Mojave), to free up around 6 gb of space. But then today, I got this notification from finder saying im out of storage. Definitely didn’t download 6gb worth of files.
Did some digging and found that kernel_task wrote 190gb of data, much more than my disk space (121gb) just curious what happened and how I fix this. activity monitor image