Read the data of “Stop Light Switch” using Subaru Select Monitor.
Is ON displayed?
A temporary poor contact of connector or harness may be the cause. Check the poor contact.
Replace the TCM.