Crankcase pressure

Hi all. I’m new to the site and hopefully can get some help. I have a Can- Am Outlander 1000 ,2012. I shattered the front piston and wiped out the crankshaft. I rebuilt the entire engine. I put a new crank and rebuild both heads two new cylinders and pistons with rings. A complete gasket kit.Went for a ride and all went well except I did not use locktite on magneto and the bolts came loose and destroyed the magneto. Changed magneto and drained oil and filter. Filter housing was packed with shavings from magneto. Flushed engine with diesel fuel twice and again with oil. Test ride is good Engine is strong,smooth and very responsive. I rode for an hour and engine went into limp mode saying low oil. Checked oil and oil is coming out of dipstick tube. I let engine cool and checked oil again,still overflow.Started engine for a few seconds and shut off and oil level was good. Rode home and engine went into limp mode again. Got home slow and checked oil again. Overflowing. Let sit over nite and checked in morning. Still over flowing. Start engine for a second and oil was good.i know it’s a long story but I wanted you guys to have all the facts.Dont know what to even look for. I’ll take all advice I can get. Thanks.