Cc1plus.exe: out of memory allocating 65536 bytes

Thanks, @paul.buerkner. I have a brmsfit object that took hours to finish and I was hesitating to restart the session but it seems I have to. Therefore, I will try closing everything and see what happens. Also, just found this solution

adding -flto -ffat-lto-objects to PKG_CPPFLAGS in src/Makevars.win

to a similar problem, so I will also try to implement this solution proposed by @bgoodri and see if I get this problem solved. Otherwise, I will let you know.