Hi Yang Kai,
The built-in database tries to load everything in-memory. That's perfectly fine for PoCs and small projects. For larger datasets this could cause problems indeed. You could check if that's the case by checking the utilization of your resources (In Windows: Ctrl-Shift-Esc).
I'd suggest to switch using to PostgreSQL. It requires some effort to install, but definitely worth it.
Good luck!