Game crash help!

So while looking for the 7th gym leader in the cave I come across some rocks I assume you need to use tesseract to get past them but my game crashes every time I activate it… Is there a way to fix this?