When your conscience is troubled, it means that what you did was wrong; otherwise, your conscience would be at peace. Therefore, you must confess if there is already a sign that something is wrong. I'm not sure if you did this with full knowledge or under pressure, but if you didn't have full knowledge or were under pressure, it's not a mortal sin because your consent was limited.
However, it remains an imperfect act. There are acts that we confess in confession that are not necessarily mortal sins because we strive to be witnesses of a perfect Christian life. So, when you are compelled, please confess this. Unfortunately, some priests will make trouble in the confessional and will try to convince you that you did a good job; so, be careful to whom you go to confession.
Dear visitors of Gloria Dei and all who have already written or who will write a personal message to me. I am grateful for your attention, your kindness, for your spiritual support and especially for your sacrifices and prayers for me. God may reward you!