There are two possibilities:

1) Let your Second company process your Work Visa immediately. Once it is issued, then even if your first company starts processing, it will be rejected automatically.

2) If your first company already processed or issued Visa, then it is valid for 6 months. You have to wait until its validity is over. Or else, your first company must cancel the same.