One cannot make a spiritual communion when in a state of mortal sin.
source: https://rorate-caeli.blogspot.com/2020/03/guide-for-spiritual-communion-and.html#more