As per Allamah Muhammad Baqir Al-Majlisi in Tahzeeb ul Islam, consuming the following items also makes one forgetful:
– bitter apple
– coriander
– cheese

Is this valid? Any considerations?

Yes it is right if there will excessive consumption but if you consume once in a while or if it is mix with other things there will be no harm in it.