8GB usable memory is the recommended minimum. There have been a bunch of other reports about problems with Ryzen systems with integrated graphics and relatively low memory. I’d start by turning off video screenshots, and if that doesn’t resolve it I would upgrade to 12 or 16 GB RAM.