When you freeze jam, it expands. If you don't leave headspace, the jam can push the lid off the jar and make a mess. The amount of headspace you need will vary depending on the size of the jar and the amount of jam you are freezing. A good rule of thumb is to leave about 1/2-1 inch of headspace.