PCB Crystal layout for DSPIC33EP512MU810-E/BG
I strongly suggest you use an XO to get an accurate reliable clock that does not have those issues.cheap.
https://www.digikey.com/products/en/crystals-oscillators-resonators/oscillators/172?k=&amp;pkeyword=&amp;sv=0&amp;pv1989=0&amp;pv2150=u8MHz&amp;sf=1&amp;FV=-8%7C172&amp;quantity=&amp;ColumnSort=0&amp;page=1&amp;stock=1&amp;pageSize=300
If you use lots they also have programmable XO’s any tolerance