Failing of getting I140 and I485 approval won't affect your current non-immigrant status. That's why keeping valid non-immigrant visa status is so important before your approval of I140. Good luck.