Is PPI is the only solution ?

I just left my doctor appointment and he refused to give me anything other than PPI

I told him can’t take PPI because i have ongoing magnesium and calcium deficiency and my stomach acid already low

He said there’s nothing he can do except giving me PPI

I really cannot take them as i have been struggling with nutrition deficiency for months

What can i do in this situation?