As James says the first checks are the door lock switches/key rod & sill button linkages, while the door cards are off lubricate everything liberally with spray grease, especially with all the rain we have had.
I think it unlikely to be an SCU/BCU Pektron relay as they don’t give intermittent problems, the wire breaks on the relay’s induction coil and that function just ceases to work.
Another area to check if it’s a post MY03 TF is the chassis to boot lid wiring as the boot latch open signal (ground) will also switch on the interior lights, this bit of flexible harness wiring is the cause of many electrical issues (even harness fires) and if you have not checked already it’s well worth opening up to take a look, the harness design is far too short and the cores fatigue and touch internally.
The boot harness mod is well worth doing, I cut my boot harness out at the chassis end and fitted a new 7 core cable with a pivot loop at the boot hinge and a plug at the chassis harness end in case I ever need to take the boot lid off.