It’s quite difficult for a PM to quit until there’s good reason to believe that the next in line can form a government. The priority for the palace is to ensure the continuing day to day functioning of H M’s Government. There always has to be a PM. The palace would be very reluctant for the Queen to appoint a new PM who might be immediately brought down.Really, even if he's broken the law?
Would have thought it was an immediate resignation issue.