Yes if you know the where this Hadith has been mentioned or the source you are getting any specific Hadith is correct then it’s ok otherwise better to avoid if you have least doubt regarding its authenticity. Things that invalidate a fast based on obligatory precaution, ascribing false things to Allah, Prophet Muḥammad (Ṣ), and the successors of Prophet Muḥammad (Ṣ) [i.e. the Twelve Imams (ʿA)]