Best way to cut foam is with a hot wire...but, since you can't do that, I would suggest trying this...shape an old butter knife blade into a curve and perhaps shorten it...wrap the handle with a cloth and wear a thick leather glove...heat the blade with a blowtorch until it slips thru the foam easily. Reshape as needed.
Never tried this, but it's worth a shot.
Even a metal coathanger might work, heated with a torch, or even the stovetop...if you could hold and maneuver it safely and accurately.
Google hot wire foam cutter to get the general idea.