A NodeMCU is not a Generic ESP8266 module, it’s a NodeMCU 0.9 or NodeMCU 1.0
These are GPIO numbers, and GPIO’s 6-11 are special reserved pins. If you attempt to use them in your sketch you will get reboots like the ones in your screenshot. Read this: