You can have the connection in a try-catch block and try to access the changeStream and if that throws an error, in the catch block you can connect to the changeStream without resume token.
try {
await mongoCollection.watch(, {
fullDocument,
startAfter: token,
})?.tryNext();
changeStream = mongoCollection.watch(, {
fullDocument,
startAfter: token,
});
} catch (error) {
changeStream = mongoCollection.watch();
}