rattle from engine.timing chain side

I recently rebuilt the top end of my rzr 900 as it was dusted. used polaris oem parts. flushed the oil 3 times and then on the last one put a new filter and polaris oil. it was great for the first few miles. Drove it real nice. Then all of a sudden when I let off the throttle it stalled, fired right back up. Did this a couple times. now when u rev it up a little in park/N u can hear a rattle knocking kinda noise. primary is off. its really loud at about 3500 rpm and can really hear it on the right side of motor. AT idle its quiet and at certain rpms u can hear the noise and others its gone.i only reved it to 3500, and when I let off it stalls. also when trying to start it it will usually fire and die the first time. I pulled the chain tensioner out and it still has tension on it. I did notice some metal flake in the oil that was dripping from the tensioner. I searched the forums but didn’t come up with my issue, any and all input is greatly appreciated.

rattle from engine.timing chain side

I recently rebuilt the top end of my rzr 900 as it was dusted. used polaris oem parts. flushed the oil 3 times and then on the last one put a new filter and polaris oil. it was great for the first few miles. Drove it real nice. Then all of a sudden when I let off the throttle it stalled, fired right back up. Did this a couple times. now when u rev it up a little in park/N u can hear a rattle knocking kinda noise. primary is off. its really loud at about 3500 rpm and can really hear it on the right side of motor. AT idle its quiet and at certain rpms u can hear the noise and others its gone.i only reved it to 3500, and when I let off it stalls. also when trying to start it it will usually fire and die the first time. I pulled the chain tensioner out and it still has tension on it. I did notice some metal flake in the oil that was dripping from the tensioner. I searched the forums but didn’t come up with my issue, any and all input is greatly appreciated.