Gateway Responses - If more 12 endpoints are sharing custom response template mapping is not working

I’m using the latest version of the serverless framework. When I used an API gateway response mapping template for more than 12 endpoints it is not working. I’ve tried with an older version also it wasn’t working. There is no error message in the log also. It’s not mapping to the API gateway failing silently.
But after manual deployment from API gateway, it starts working. It’s completely strange.