There are no restrictions to the number of times that you can cancel and reapply for a UK visa. However, cancelling your UK visa application is not something you should do lightly. Once you withdraw an application, you cannot reverse the decision, and without an active visa, you can become an overstayer. So, seek legal advice before cancelling your UK visa application.