Is the son of the sister by breastfeeding considered a mahram in Islam, and is it permissible for a woman to go for Hajj with him?
Everything that is prohibited by lineage is also prohibited by breastfeeding. The son of the sister by breastfeeding is considered a mahram, just like the son of the sister by blood, and it is permissible for him to be her mahram for Hajj and Umrah. And Allah Knows Best.
Is prayer nullified by having thoughts while performing it?
Prayer isn`t nullified by having thoughts while performing it, provided that the praying person offers all of its pillars and meets all of its conditions. However, the reward decreases significantly in the absence of reverence since a praying person is rewarded according to the attentiveness of his/her heart during prayer.
What is the ruling on a person in a state of major impurity (junub) or a menstruating woman (ha'id) reciting the Quran from memory?
It is not permissible for a menstruating woman, a postpartum woman, or a person in a state of major impurity to recite anything from the Quran, whether from memory, from the Quran, from a phone, or a computer. It is also not permissible for them to touch the Quran, based on what was reported from Ali bin Abi Talib that the Prophet (peace be upon him) was not prevented from anything regarding the Quran except major impurity (janabah). (Reported by al-Tirmidhi who said it is a hasan sahih hadith). Menstruation and postpartum bleeding are analogous to major impurity (janabah) as they are all major impurities (hadath akbar).
For those mentioned, it is permissible to mention Allah and supplicate even with verses from the Quran, provided they do not intend them as recitation of the Quran, but intend them as remembrance (dhikr) or supplication (du'a). And Allah the Almighty knows best.
What is the ruling on wiping the head during ablution from behind a barrier like a headscarf (hijab)?
The obligation in ablution is to wipe some of the head; it is not a condition to wipe all of it. As for one who has a turban or headscarf on their head, it is permissible for them to wipe over it after wiping a part of their head in any place. This is easily done at the front of the head. This means the woman begins by wiping the front of her head from under the headscarf, then completes the wiping to the back of the head from over the headscarf. If the woman wipes over the headscarf on her head and the moisture reaches the scalp or some hair within the boundaries of the head, it suffices for wiping the head. And Allah the Almighty knows best.