Not quite comfortable poking around in the compiler, but find a patch attached.
I also found this related bug: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32644.
0001-Limit-the-range-of-ash-round-ash-count-argument-to-I.patch
Description: Binary data
0002-Avoid-ash-with-arguments-that-might-overflow-in-lang.patch
Description: Binary data