I’m doing something similar next week, except going back to TPE on the same day with 4 hours on the ground to drop off some paperwork.
I was there last summer and going through customs was fairly quick on arrival, and security going back through was also fairly quick.
Hope that helps a little bit