sounds like your recessed lighting box is getting too hot. Is it assessable from the attic, if so make a box out of drywall . The box should be around 2 or 3 times larger than the fixture box. Place this box over the top of the recessed fixture in the attic. Be sure to take out all the insulation between the box and the fixture. This should take care of your problem. Led bulbs may also work for you since they produce very little heat.