EDIT: I think I sorted out the problem, my computer is having battery issues prior to Xubuntu, some kind of bad connections, sometimes the pc suddenly stop recognizing it. Without the battery, the pc doesn't freeze.
I'm dual booting Windows 8 and Xubuntu 18.04 for my Robotics class, and I keep having random freezes and having to force shut down.
I read about running out of memory, I kept monitoring with Task Manager and RAM was always around 28% when it freezed.
I've reinstalled Xubuntu but it keeps freezing.
Any suggestions for what is the cause? Any help would be much appreciated
Acer Aspire E15 E5-571-51PC
NVidia Geforce 820M
Intel core i5
4 GB DDR3 L RAM
500 GB HDD