Compound of 物(もの) (mono) + 狂(くる)い (kurui). The kurui changes to gurui as an instance of rendaku (連濁).
物(もの)狂(ぐる)い • (monogurui) ←ものぐるひ (monogurufi)?