There are some circumstances where a Jew has to give up his life if there is a minyan there and he is being forced to do an aveira.
Question: Is the person himself included among the ten? Are women included? Children? Not frum people?
If the person himself is included is questionable. If women and children are included in the ten is controversial some say they are and some say they are not. Regarding if they have to be frum people or not, I haven’t seen anything on it as of now.
Dvar Shmuel (Abuhav) 63, Minchas Chnuch 296, Ohr Gadol siman 1 pg. 2, Darcei Teshuva Y:D 157-24, Zera Emes 3-54, Gilyun Maharsha Y:D 157, Pischei Teshuva ibid 7.