Nokia 5.1

My nokia 5.1 has that whenever I try to update it downloads the update but after doing restart,it shows that there is installation problem so,can anyone tell me how can I resolve,I had talked to a customer service agent also...he said that;"You can reset your phone and then do that but after doing that it also didn't,can any one tell what can I do??