In some cases they can also false trip due to radio frequency interference. I just replaced two GFCI breakers at my aunt’s house that kept tripping randomly every several days. After some looking online I found YouTube videos showing people keying up portable radios by their breakers that would trip them. In her case the newer version of her breakers had been redesigned to address this known problem. The originals were only about 7 years old, Eaton brand.
Some in some cases a “bad” GFCI could be one of these older ones that aren’t happy in the wrong environment and a new one fixes it.