If you are using NGINX in your server.
update client_max_body_size in the configuration file
client_max_body_size 50M;
then restart your server.
app.use(express.json({ limit: '10mb' })); // For JSON bodies
app.use(express.urlencoded({ limit: '10mb', extended: true }
this could also help.