Period trouble?

Maddie
My period keeps coming every 2-3 weeks because of it I'm anemic my doctor prescribed iron pills but of course I can't swallow them what should I do. What could this mean?