My FairPhone acts on its own

OK, do the touchscreen test to check, if it is a hardware issue or a software issue.

You will see red squares. If they turn green by themselves, make a video of the process and send it to FP asking for a warranty ticket. Report back if you know more, please.