It is not a sin to avoid Mass when it is a endangering your faith.
Is it possible that other people need to see your faith displayed so that they can imitate it.
We are all given gifts by the Lord. We need to use them.