I know that this error is very common when the heap size is more than 12MB for an Asynchronous call, in my case, web service call out. I have referred this documentation: https://help.salesforce.com/articleView?id=000321537&language=en_US&type=1&mode=1 already, which only provides solution while we are having heap size larger at our implementation.
But, in my case, the response I have received via a web service call out is exceeding the heap size limitation and causing the exception. Is there a way/solution for this scenario? My search on the same was no fruitful, so looking for some guidance.
public String rawXMLResponse; .. .. rawXMLResponse = resp.getbody(); //This is where I am getting the heap limit exception.