If the patent is withdrawn before authorization, then the patent is not called a patent. It is just a patent application. There is no problem that the patent is deemed not to have existed from the beginning, because the application has never been granted. Authorization.
If the patent is withdrawn before the Intellectual Property Office’s announcement because the patent has not been published, then the patent still has novelty. If it is withdrawn after the Intellectual Property Office’s announcement, because the patented technology has been made public, it is no longer novel.