Roku devices don't turn off, so it would help if you explain more about what's happening. What do you mean by "the second one turns off by itself a few minutes later"? Is the TV that it's connecting to turning off or does streaming end on the second device and it returns to the Home Screen?
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.