Problem Using Wall Anchors for Curtain Rod
You may be able to run the screw right into the framing with out using the anchors. It will hold much better if it is framing and not wood lath or masonry. if the brackets are directly over the window, you may have found the header.