App losing connection and relinking

I am building an app that imports no.of products to VTEX. During the development, I link the app to the VTEX platform using the link command. The app is frequently losing connection and relinks again. The product import stops in the middle as the app behaves in this way. Has anyone faced this issue before? If yes can you please share the fix?