Instantons in the Hofstadter butterfly: difference equation, resurgence and quantum mirror curves