8 GB of RAM doesn’t cut it these days. You’re looking at wanting 16 GB as a minimum for a general use computer or 32 GB for a gaming computer. I suggest looking up your model of laptop online to see if you’re able to upgrade your RAM. Some computers’ RAM is soldered and nonupgradable.
There is a ton to digest and so many unknowns. I would assume the network every device is connected to is compromised. Get every device offline including the light bulbs. I would then create a new “clean” network where reformatted devices can be placed back onto one at a time. I would also strongly recommend keeping IoT devices on their own separate network.