Blender struggles in edit mode with over a few million vertices. CPU upgrades don’t help much with this either. CUDA out of memory error happens if you are in render preview using Cycles GPU rendering, and has to do with your VRAM being too small (pretty likely for 2GB). However, for basic editing, the hardware should be fine. You’ll have to be more specific about where the slowdown and errors are occurring.