The white stuff in ex1 looks like quite severe corrosion of the aluminium part, but is harmless.
The white stuff in ex2 is heat sink compound which tends to dry up with age & heat.
Heat sink compound hasn't used BeO for many years, so you should be OK.
If you are still worried, you can probably take samples & get some local Technical authority to test it.
(University Chemistry Dept, for instance).