I have headache on left side and pulsating pain behind left ear. Can this be related to alcohol detox and taking acampprosate?

Yes. Those could be adverse effects of acamprosate, but GI symptoms and mood problems are more common. More likely the symptoms may be realted to alcohol withdrawal. Have your prescribing doctor check you to be sure you're ok.