Adjusting virtual box settings because Local thrashing and freezing my old mac

I have an old mac air with the following hardware.

Model Name: MacBook Air
Model Identifier: MacBookAir4,1
Processor Name: Intel Core i5
Processor Speed: 1.6 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache (per Core): 256 KB
L3 Cache: 3 MB
Memory: 4 GB
Boot ROM Version: 130.0.0.0.0

I had a lot of problems with the previous version freezing my laptop and db back up failures and so on. So just updated to the latest version by completely uninstalling both local flywheel and virtual box and reinstalled it all and all the updates.

I was still having problems where the VM maxing out and freezing up.

As a result, I stopped the site and shut down local. After that, I just went to the VM settings and changed the following to see if it would help and made the changes that follow.

General > Basic: I changed Linus to Mac OS X and the version to high sierra 64 bit.
System > Processor to 2 CPU
Storage > disk.vmdk put a check mark in Solid-State Drive.
Thats pretty much it. I left the base memory under system > motherboard and tinkered with decreasing the base memory, which did not help. I reset it to the original 1024MB and saved, quite the VM and started up local. Prior to this my laptop was taking a long time to pull from the site to local. And would just overheat and thrash, freeze, etx…

So after those changes, I do not remember the amount of time it took, but it only froze and thrashed pretty much once and it became alright in about a minute.

So with that background information I wanted to see if you can verify some things for me.

  1. Does this cause issues that I do not know of?
  2. Are there any side effects to the site and data that would corrupt the VM?
  3. If this is something that can be done, could I know how to optimize the performance vs. freezing issues?

On another note, There was an issue with going to wordpress 5.0 that didn’t work and I had to kill the app. So knowing that the database was corrupted, I removed all the folders from the sql folder and replaced it with the backup.sql that I copied off before shutting down as I could not be sure if there was any corruption, So its 2 issues, but basically both result in the same question.

Question: Not knowing how local works, is it ok for me to do what I said above? after putting the backup.sql and opening the app again, and turning on the site it seems to do what I expected, but am not sure.
Could you also tell me if this causes issues?

In advance, thank you for the help. Much appreciated. There might have been a category related to these two but I could not find it.
I also found an article turning the VMDK to a VDI that resizes the image, but I do not know if I need that as the VM seem of manageable size.

Again, much appreciation in advance. Cheers.

It appears that it still thrashes sometimes. So I disabled my avast protection and turned off CleanMyMacX. It seems to have helped also. Is this a real issue? Or something I just got lucky by turning things on and off.