Starter relay?

Weird issue. Quad fires up, but will not stay running. You turn the key to On, injectors and fuel pump fire up, dash comes on like normal. Turn the key to start and it fires right up, but as soon as you return the key to On it dies.

It takes forever to get it to stay running. No error codes, no batttery lo, nothing.

Once you eventually get it to keep running it runs great, strong, no issues.

Happens when cold or hot, but seems a little worse when hot. You can turn the key and it will crank over and start and hit the throttle and get it up to 3500rpm or whatever, but the second you release the key, it dies…

Eventually it will stay running but it is a real pain in the butt.

Any ideas? Is it something as stupid as a starter relay or something?