How to install a chandelier onto a pancake box?
My suggestion is to find a different fan rated pancake that does not have the mounting holes directly inline with the beam. Alternatively, go buy a new pancake and drill holes to mount it where the holes aren't inline with the beam.

Either suggestion shouldn't cost you much.