Forget Passowrd Email not sending - 504 Gateway Time-out

here is the last lines of error log right after i execute the query from postman

the config/server.js (I dont have any environment configured)
module.exports = ({ env }) => ({
host: env(‘HOST’, ‘0.0.0.0’),
port: env.int(‘PORT’, 1337),
url: ‘https://admin.exerche.com’,
admin: {
auth: {
secret: env(‘ADMIN_JWT_SECRET’,‘THE_LONG_SECRET_KEY’),
},
},
});

I didnt change the email provider. i didnt do any settings. i tried sendgrid, but that didnt work so i reverted back. i have no complex task. just need the forget password to work via api.
Thanks.

PS: I did as you asked be removing those lines etc from the config file. didnt work