Always get rid of something that causes a problem (Cranidos). Did you get the latest update for Ultra Moon? Did you get the latest update for your 3DS? Is your 3DS or cartridge hacked? But, I'm pretty sure it's just that Rampardos from the GTS, it's data is probably super corrupted and causes the black screen. Also, games from stores can be fake too.