The WDT turned out not to be related to this but is this an issue (since __digitalWrite() is decorated with ICACHE_RAM_ATTR)?
The WDT turned out not to be related to this but is this an issue (since __digitalWrite() is decorated with ICACHE_RAM_ATTR)?