Your lawyer is correct - you want to file first, and you are hurting yourself by delaying.
You should consult an immigration lawyer about the consequence of divorce. You should not assume that a court will let you leave the U.S. with the child, particularly if it does not appear that you would comply with a parenting time arrangement.

