Hi @Aishwarya Panicker ,
Thank you for posting in this community.
400 Character is the URL limit allowed for SharePoint. If the URL is too long, it could be rejected.It is not related to the version of SharePoint or Teams.
Unfortunately, there isn’t a setting in Stream to change the URL format. Instead of using the direct URL, try embedding the video using the embed code provided by Stream.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.