res.status(200).json(randomFoodList);
It sends the response to user but doesn't stops the code execution and when your code is executing further it is returning the response again, that's why you're getting this error
Replace res.status
with return res.status