Try creating a folder inside the mounted drive and telling the node to use that folder for its data.
Do this for example:
mount /dev/sda1 /mnt
mkdir /mnt/node
docker run -d --restart unless-stopped ... \
--mount type=bind,source="/mnt/node",destination=/app/config
Now when the mounted drive goes away, the folder will go away too and the node will encounter errors because it tries to write to a non-existent folder.