This embed is misconfigured after change parent part it gives player.twitch error

Some javascript could do it.
The preferred method is to change your hosting configration, either via NGINX/Apache config changes, .htaccess changes for apache only, or whatever is supported by your hosting provider