Ceiling fiberglass getting yellow because of bad primer?
You will probably need a shellac based primer. It sounds like the coloring in the insulation is bleeding through.
I have found that shellac based primers are the only way to stop bleed through with other painting projects.
Zinser, bin and kill are the primer brands that work well for me.
I have no association with these products other than being a satisfied customer.