There is no strict rule against removing the mangalsutra while sleeping, but it is considered to be more auspicious to wear it at all times. However, some women may feel uncomfortable wearing it all the time and choose to remove it occasionally.