If the o-ring is being "spit out" - then you're looking at one of the surfaces being warped...
Check the mating surfaces with a flat-edge...any irregularity should show itself...
All OK? Then...
Put a thin bead on both sides of the gasket, assemble the parts and let the repair SIT 'til the sealant (according to the directions) has a chance to cure completely, first...
Once that's done, THEN start it up.
Don't run the engine 'til the goo cures...