Australian Nick Kyrgios lost his comeback match in a three-set thriller against big-serving Frenchman Giovanni Mpetshi Perricard.