I also use a heated mattress pad. But I do not use a foam topper, so I cannot say for sure. But I have a suggestion, if you get a mattress cover for the foam, then it should be insulated against the heat. Then the two will not be against each other. Just an idea, sorry I couldn’t help further.