Analysis
From your statements I deduced this:
- Hypothesis A: Your machine are immune to madness.
Many people couldn't even get close to these substances without losing their sanity hence I think machine might fare better.
This hypothesis implies your machines are not subject to sanity losses. This implies they can't have any form of emotional intelligence.
- Hypothesis B: Emotional state of mind is improving magical results but not necessary for magic to be used.
emotion normally act as catalyst
A catalyst is a desired but not required compound of a chemical reaction used to increase dramatically the efficiency of this reaction. This implies emotion is a nice to have in your magic framework.
Facts (as far as I know)
Sentience has nothing to do with brain waves. Any brain, from the dumbest to the smartest emits electromagnetic waves. Therefore the machine's brain waves replication capacity is useless.
Brain waves is only the consequence of a functioning brain. Generating brain waves would produce no more "emotion" from the void than would a light torch do.
Conclusion
A and B are both true
According to me, it's the better option: the apocalypse.
Since magic requires sensitive beings the machines can't use magic by themselves. Machines are pure rational beings, optimizing their goal, they can not feel empathy and they would have no reason to care about us. At best they would ignore us until we interfere with their goal and they begin a war in order to remove humanity from Earth.
In that scenario it is almost certain that machines -- being incapable of using magic by themselves -- would start to enslave human beings in order to manipulate magic via their slaves making them "feel" arbitrarily things according to their needs.
A is true and B is false
In this scenario, both machine and humans can use magic. Human have no particular advantage over the machines because emotions does not play a role in magical events. It's event worse than the previous scenario because machine would be able to use magic directly.
A is false and B is true
This scenario implies that your machines are able to use magic exactly as human do because they are sensible and still capable of emotional behaviour -- they could see us as a peculiar and bizarre form of life which gave them birth. The endeavour of understanding and manipulating magic is clearly required for the machines to survive a possible war against humans. Machine are still subject to madness -- I let you free to explain the prospect of a sensitive mad machine -- so they wouldn't be able to be better than humans whatsoever.
- Q1: Yes (see above).
- Q2: Yes (idem).
A and B are both false
This is the boring option: man and machines are both emotional beings and all things being equal, magic exists.
- Q1: Yes (boring).
- Q2: Yes (hem...).
Personal opinion
I don't think that giving your machine the ability of acting like humans is nice for your scenario because I don't see the point of having perfect human replicas except if your story is NOT about robots.
The third option is to define more precisely how magic works so machine are able to learn and use it somewhat in a more efficient way than humans do. Or the opposite.