Toyota’s infotainment system doesn’t natively support YouTube playback through Android Auto, which is probably why you’re running into issues. If you’re just looking to listen to YouTube audio, you could try running it in the background and playing it through Bluetooth instead of Android Auto. For actual video playback you’d need to use a screen mirroring device like a Google Chromecast with a USB adapter.