Process running mem=662M(129.4%) heroku[run.7214]: Error R14 (Memory quota exceeded)

hello, I have found several posts ( 1 , 2 and 3 ) that mention setting the WEB_MEMORY and WEB_CONCURRENCY variables. I have tried the following commands but have not been able to solve it. Does anyone have more information about this error?

heroku config:set WEB_MEMORY=512
heroku config:set WEB_CONCURRENCY=1