The runner suffered a medical emergency while taking part in Carlingwark Loch parkrun in Castle Douglas.