Highly doubtful an ulcer but always a possibility although it doesnt explain the chest pain I personally think it is due to the pill change your body is reacting different to a diff. Substance it might be trying to fight it so I would check with the doc. Something more serious maybe going on. Good luck and god bless
jessica