Engine wants to die at stop lights

No electrical problems. And it only seems to happen after driving it at a high rpm for 20min. Just quick in town trips and going to work doesn't seem to trigger it.