The following links will assist you with your electrical question.
How to wire in attic insulation.
Use wire insulation supports to hold attic insulation up between beams keeping your house well insulated is a good but annoying necessit.
How to run wire through an attic step 1.
While wearing dust mask and gloves carry r 38 batts of unfaced fiberglass insulation into the attic.
Is this ok to insulate or will the wire generate heat.
Yes this should be corrected and it would be good to have the wiring and all the circuit connections inspected as well.
Find your attic access.
Lay the batts across the ceiling joists covering the existing insulation.
Attic electrical wiring covered with insulation poses a concern about over heating.
Energy saver walks us th.
The attic wiring should be protected and secured to ceiling joists or other wood structural supports.
Continue laying down the insulation making sure the batts are pressed tightly together at all edge and end joints.