Imam ad-Dhahabi said his memory is weak in his biography.

Imam ad-Dhahabi on his memory.
ad-Dhahabi mentioned himself in Dhayl dīwān al-ḍuʿafā 
345 – محمد بن أحمد بن عثمان الغافقي: سيء الحفظ ليس بالمتقن ولا بالمتقي. سامحه الله تعالى.
Muhammad bin Ahmad bin Uthman al Ghafiqi, he has weak memory, he is not memoriser neither he is pious. May Allah forgive him.
(Dhayl dīwān al-ḍuʿafā 1/56)

He mentioned his biography in المعجم المختص بالمحدثين and said:
الذهبي، المصنف ، محمد بن أحمد بن عثمان بن قايماز ابن الشيخ عبد الله التركماني الفارقي ثم الدمشقي الشافعي المقرئ المحدث، مُخَرِّج هذا المعجم.
وُلِد سنة ثلاث وسبعين وستمائة … وجمعَ تواليفَ، يُقالُ: مفيدة، والجماعة يتفضلون ويثنون عليه، وهو أخبر بنفسه، وبنقصه في العلم والعمل، والله المستعان ولا قوة إلا به، وإذا سلِم لي إيماني فيا فوزي
al Dhahabi Muhammad bin Ahmad bin Uthman.. Al Shafiee al Muqri, Muhaddith who produced this Mo’jam…
They say (about ad-Dhahabi’s books that they are) beneficial.. He is more aware about himself than others, he has imperfections of knowledge and practice, and Allah is The Helper and there is no strength except by Allah…
[المعجم المختص بالمحدثين صـ٩٧]
He is Hafiz of the world and see his humility May Allah grant him jannah ameen.