Floquet Harper-Hofstadter Butterflies and non-Hermitian phase transition in quasicrystals