While checking, the onStateChange event of youtube iframe API is not working. I guess that event is blocked by the google tag manager. Could you please load the tag manager script once the window is ready inside a setTimeout…like this
//Tag Manager Code Here
Try this and let me know-Thanks!