Strange compiler error (Segmentation Fault)
This is a known fault with the compiler in Windows.  The annoying thing is that it's the version of the compiler that is included in the Windows Store App version of the Arduino IDE.

It also snuck into the Windows version of the IDE from version 1.8.6 from the Arduino.cc website, with the bundled version of the Arduino AVR core.

There are numerous Github issues open for the problem and navigating the tangled web of them is a bit of a chore, but this one seems to be the most promising for digging into the root cause:


AVR core 1.6.22 (IDE 1.8.6) crashes avr-gcc compiler (5.4.0) when F() string is assigned to a static variable


The simplest fix is to downgrade your compiler to 4.9.2.  This can be done by using the Boards Manager to install version 1.6.21 of the Arduino AVR Boards.  This should give you compiler version 4.9.2-atmel3.5.4-arduino2 which doesn't suffer from the problem.