From: Rabbi Moshe Sofer
To: Rabbi Ber
A Jew imprisoned by non-Jews was forced to eat forbidden foods. The Chasam Sofer rules leniently, holding that eating under duress requires no fasting or monetary penance, though sincere repentance and confession are appropriate for any involuntary pleasure experienced.
Source: Shu"t Chasam Sofer OC §202