O has no impact on 140.
It is a gray area if O affects 485. Some peole in the past say that the exception of H and L also expands to O and P. However, never see such regulation. Ask an experience lawyer to make sure. Worst case, refile 485. Another option, use EAD. In case 140 denied. Leave country and come back with an O visa.