Thanks for the help. I enabled the XMP mode and the performance was significantly better, but now I have stability issues. I played Battlefield 1 for a half an hour and when returned to the menu, it crashed. Then I managed to boot the system, and it crashed again while being idle on the desktop.