Some fruits foam more than others. Strawberry can foam very aggressively and I suggest that you never leave the kitchen once it is on the boil. When the jam nears the gel point, the foam will subside significantly, but there is always a little bit. Never throw it out! You might need a lazy dinner one night too.
Wishing you all a carefree, safe and joyful Independence Day weekend!