I am making a Xbox gameplay of bendy and the ink machine for my YouTube channel and I need the recording time last longer than 10minutes. Is there a way to change it?
I think the best option on Xbox would be to use something like Mixer. Mixer is installed by default, and has the option to record streams. You will have to change your settings to enable a recording of the stream.
See https://windowsreport.com/save-mixer-streams-xbox/ for details on how to enable recording of your stream.