Make sure your licensing is current and your server can reach Tableau's licensing location. TSM is quite picky about licensing and doesn't always give obvious errors that are due to licensing problems. It's my understanding if you get this you should be ok in terms of reaching their licensing location:
However, make sure the maintenance has been refreshed on the TS, all keys you're using are current, etc.
I have tried installing 2019.1 version again. I got installed without any errors. But still don't know the reason why it threw error for 2018.3
Cool, I'm glad you were able to upgrade.
Don't waste your time trying to figure out why 2018 didn't work, it would just be a waste of time, especially since you will only continue to upgrade.