From 紛(まが)い (magai, “連(れん)用(よう)形(けい) (ren'yōkei, “stem or continuative form”) of the verb 紛(まが)う (magau).”) + 物(もの) (mono).
まがいもの • (magaimono) ←まがひもの (magafimono)?