Designed to get themselves out of a hole. It is still within the legal warranty so insist they sort it out. If they refuse get an independent report on it stating the fault is inherent and then tell them you will take it to court if they don't sort it out. I would as a precaution try it with a wired K/B and Mouse just in case yours are faulty.
OnePlus 5 review