What is my drill hitting and not penetrating when I hang curtains?
Are you sure the walls and headers are wood?  It is possible if the construction is new, it is built with steel studs. Check with your landlord. If they are steel, you can pilot a hole with a titanium bit or use self drilling screws made for steel framing.  It would be very unlikely to find wiring and nail guards that close to the edge of a window or door frame.