Non-invertibility of certain almost Mathieu operators