Can you just swap out the logic board for one with better hardware?
swapping logic board 2014 Mac mini
Mac MiniI recommend checking with the iFixit website for that kind of information.
Original thread: https://forums.imore.com/threads/swapping-logic-board-2014-mac-mini.412915/